using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

namespace Gameplay.RTS.Hud
{
    public class WorldFlyTextEvent : MonoBehaviour
    {
        private Animation m_flyAnimation = null;
        private ParticleSystem[] particles;
        private void Start()
        {
            this.particles = this.GetComponentsInChildren<ParticleSystem>();
            StartCoroutine(attackhalfevent());
        }

        private IEnumerator attackhalfevent()
        {
            yield return new WaitForSeconds(3.0f);
            for (int i = 0; i < particles.Length; i++)
            {
                particles[i].Play();
            }
        }
    }
}